import service from '@/alova'

const startApi = {
  login: (data: any) => {
    return service.Post('/api/v1/Start/Login', data, {
      headers: {
        'X-Client-ID': data.clientId
      }
    })
  },
  /**
   * 获得验证码
   * @param clientId 客户端标识
   */
  getCaptcha: (clientId: string) => {
    return service.Get('/api/v1/Start/Captcha', {
      headers: {
        'X-Client-ID': clientId
      }
    })
  }
}

export default startApi
